package com.innovation.chengzhangriji.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;

import com.innovation.chengzhangriji.ChZhRJApplication;

public class CuteEditText extends EditText {

    public CuteEditText(Context context) {
        super(context);
        init(context);
    }

    public CuteEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public CuteEditText(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(final Context context) {
        setTypeface(((ChZhRJApplication) context.getApplicationContext()).getTypeface());
        /*float density = getResources().getDisplayMetrics().density;
        int padL = (int) (16 * density);
        int padR = (int) (16 * density);
        int padY = (int) (0 * density);
        setPadding(padL, padY, padR, padY);*/
    }
}
